import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import Forum from '@/components/Forum'
import Blog from '@/components/Blog'
import Library from '@/components/Library.vue'
import Ask from '@/components/Ask'
import Login from '@/components/Login'
import Register from '@/components/Register'
import Items from '@/components/Item'
import UserPost from '@/components/UserPost'
import Vip from '@/components/Vip'
import LibraryPush from '@/components/LibraryPush'
import DownItem from '@/components/DownItem'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Forum',
      component: Forum
    },
    {
      path: '/index',
      name: 'Index',
      component: Index
    },
    {
      path: '/forum',
      name: 'Forum',
      component: Forum
    },
    {
      path: '/blog',
      name: 'Blog',
      component: Blog
    },
    {
      path: '/library',
      name: 'Library',
      component: Library
    },
    {
      path: '/ask',
      name: 'Ask',
      component: Ask
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/items/:id',
      name: 'Items',
      component: Items
    },
    {
      path: '/user/post',
      name: 'UserPost',
      component: UserPost
    },
    {
      path: '/vip',
      name: 'Vip',
      component: Vip
    },
    {
      path: '/library/push',
      name: 'LibraryPush',
      component: LibraryPush
    },
    {
      path: '/download/item/:id',
      name: 'DownItem',
      component: DownItem
    }
  ]
})